package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 保存菜品对应口味信息
     * @param flavors
     */
    void saveBatchFlavoies(@Param("collection") List<DishFlavor> flavors);

    /**
     * 根据dishId删除口味信息
     * @param ids
     */
    void deleteByDishIds(List<Long> ids);

    /**
     * 根据菜品id查询口味
     * @param id
     * @return
     */
    List<DishFlavor> findByDishId(Long id);


}
